P4P Network Communication Components Based on Half-Sync/Half-Async and Pipe/Filter Patterns

نویسندگان

  • Cheng Wang
  • Zhicong Liang
چکیده

This paper describes P4P(Proactive network Provider Participation for peer-to-peer) network server based on the Half-Sync/Half-Async and Pipe/Filter design patterns, which implements the requirements of the P4P system. The P4P network server applies the Half-Async layer to listen to the specified network port and establishes network connections asynchronously; makes use of message queue layer to buffer established network connections; applies the Pipe/Filter pattern into the Half-Sync layer and takes the Half-Sync layer to receive data and send data concurrently. Thanks to these patterns and the design, it gains various levels of concurrency and flexibility.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Haptic Data Compression Based on a Linear Prediction Model and Quadratic Curve Reconstruction

REGULAR PAPERS An Approach for Identifying Detecting Objects of Null Dereference Yukun Dong A Defense Model of Reactive Worms Based on Dynamic Time Haokun Tang, Shitong Zhu, Jun Huang, and Hong Liu An Improved Algorithm of Quantum Particle Swarm Optimization Yan-xia Jin, Jing Xue, and Zhi-bin Shi Haptic Data Compression Based on a Linear Prediction Model and Quadratic Curve Reconstruction Fengh...

متن کامل

Half-Sync/Half-Async An Architectural Pattern for Efficient and Well-structured Concurrent I/O

This paper describes the Half-Sync/Half-Async pattern, which integrates synchronous and asynchronous I/O models to support both programming simplicity and execution efficiency in complex concurrent software systems. In this pattern, higher-level tasks use a synchronous I/O model, which simplifies concurrent programming. In contrast, lower-level tasks use an asynchronous I/O model, which enhance...

متن کامل

Half Sync/half Async

Example An operating system is a widely-used example of a complex concurrent system that manages many different types of applications and hardware. For instance, it coordinates and demultiplexes the communication between standard Internet networking applications, such as telnet, ftp, smtp, dns, and inetd, and hardware I/O devices, such as network interfaces, disk controllers, end-user terminals...

متن کامل

Pattern-Oriented Reengineering of a Network System

Reengineering is to reorganize and modify existing systems to enhance them or to make them more maintainable. Reengineering is usually necessary as systems evolve due to changes in requirements, technologies, and/or personnel. Design patterns capture recurring structures and dynamics among software participants to facilitate reuse of successful designs. Design patterns are common and well studi...

متن کامل

Using Design Patterns and Frameworks to Develop Object-Oriented Communication Systems

Factory 19 Tactical Patterns Proxy { \Provide a surrogate or placeholder for another object to control access to it" Strategy { \De ne a family of algorithms, encapsulate each one, and make them interchangeable" Adapter { \Convert the interface of a class into another interface client expects" Singleton { \Ensure a class only has one instance and provide a global point of access to it" State { ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • JSW

دوره 9  شماره 

صفحات  -

تاریخ انتشار 2014